cnb\admin\api\CnbAppRemote D

Total Complexity 130
Dependencies 18
Dependents 34
Total lines 990
Lines of code 512
Logical lines of code 297
Comment lines 322
Methods 58
Properties 0

Methods 58

Method Rating Maintainability Complexity Lines of code
cnb_remote_handle_response()
A
49 9 29
cnb_remote_get_args()
S
53 6 23
get_wp_info()
S
48 5 33
get_button()
S
61 4 12
get_button_for_condition()
S
64 4 11
get_button_for_action()
S
64 4 11
get_action()
S
64 4 11
cnb_remote_post()
S
57 3 16
cnb_remote_patch()
S
59 3 14
delete_apikey()
S
61 3 12
delete_domain()
S
62 3 11
delete_button()
S
62 3 11
delete_action()
S
62 3 11
delete_condition()
S
62 3 11
cnb_clean_site_url()
S
57 2 19
cnb_get_static_base()
S
66 3 8
cnb_get_user_base()
S
66 3 8
save_subscription_data()
S
70 3 6
get_client_css()
S
67 3 8
get_client_js()
S
67 3 8
get_domain()
S
66 3 9
cnb_get()
S
60 2 13
cnb_remote_delete()
S
62 2 11
get_user()
S
66 2 9
update_action()
S
68 2 7
get_wp_domain()
S
64 2 10
create_domain()
S
68 2 7
init()
S
67 2 8
create_button()
S
68 2 7
create_action()
S
68 2 7
update_button()
S
68 2 7
create_condition()
S
68 2 7
update_condition()
S
68 2 7
cnb_incr_transient_base()
S
74 2 4
cnb__get_transient_base()
S
69 2 7
cnb_get_api_base()
S
74 2 4
update_domain()
S
68 2 7
create_billing_portal()
S
60 1 14
create_email_activation()
S
63 1 11
create_apikey()
S
75 1 4
get_site_url()
S
80 1 3
get_apikeys()
S
76 1 4
get_subscription_status()
S
72 1 5
cnb_get_transient_base()
S
79 1 3
cnb_wp_request()
S
65 1 8
wp_remote_delete()
S
71 1 5
wp_remote_patch()
S
71 1 5
cnb_remote_get()
S
71 1 5
get_subscription_data()
S
76 1 4
update_user()
S
75 1 4
get_apikey_via_ott()
S
74 1 4
enable_email_opt_in()
S
77 1 4
disable_email_opt_in()
S
77 1 4
get_buttons()
S
76 1 4
get_actions()
S
76 1 4
get_conditions()
S
76 1 4
get_condition()
S
75 1 4
set_user_storage_type()
S
72 1 5